﻿using FluentNHibernate.Conventions;
using FluentNHibernate.Conventions.Instances;

namespace ToyStore.Infrastructure.NHibernateMaps.Conventions
{
	public class PrimaryKeyConvention : IIdConvention
	{

		public void Apply(IIdentityInstance instance)
		{
			instance.Column(instance.EntityType.Name + "Id");
			//instance.UnsavedValue("0");
			//instance.GeneratedBy.Identity();
		}
	}
}